<?php
/**
 * Created by PhpStorm.
 * User: 海峡
 * Date: 2021/1/11
 * Time: 14:14
 */
set_time_limit(0);//永不超时 使用cli 不能使用Nginx apache
include __DIR__ . '/function.php';
require __DIR__ . '/vendor/autoload.php';
use QL\QueryList;
$url = 'https://news.ke.com/cs/baike/0033/';
$html = http_request($url);

$datalist = QueryList::Query($html,[
   'img'=>['.lj-lazy','data-original'],
    'title'=>['.item .text .LOGCLICK','text'],
    'desn'=>['.item .text .summary','text'],
    'href'=>['.item .text > a','href']
])->data;

var_dump($datalist);